package com.cgt.xiaotao.product.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cgt.xiaotao.model.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel(description = "商品表")
@TableName("product")
public class Product extends BaseEntity {

    @ApiModelProperty(value = "商品id")
    @TableField("id")
    private Long id;

    @ApiModelProperty(value = "商品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "商品图片")
    @TableField("image_url")
    private String imageUrl;

    @ApiModelProperty(value = "商品价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "商品销量")
    @TableField("sales")
    private Integer sales;

    @ApiModelProperty(value = "商品评论数")
    @TableField("comments")
    private Integer comments;

    @ApiModelProperty(value = "是否是广告商品")
    @TableField("isAd")
    private Boolean isAd;

    @ApiModelProperty(value = "商品状态")
    @TableField("status")
    private Byte status;

    @ApiModelProperty(value = "商品类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "商品描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "商品标签")
    @TableField("tags")
    private String tags;

    @ApiModelProperty(value = "商品库存")
    @TableField("inventory")
    private Integer inventory;
}
